<<<<<<< HEAD
public class MainActivity
{

/**
显示方法
*/
  private void show{
                if (showAdress != null) {
                    if (!showAdress.isShowing()) {
                        showAdress.showAtLocation(getWindow().getDecorView(), Gravity.CENTER, 0, 0);
                    }
                }
  }


    /**
     * 初始化弹窗
     */
    private void initPopu(List<String> list) {
//        ArrayList<String> strings = new ArrayList<>();
//        for (int i = 0; i < list.size(); i++) {
//            strings.add(list.get(i).name);
//        }
        if (showAdress == null) {
            showAdress = new TextPopupWindow(this, (ArrayList<String>) list, list.size());
        }
        showAdress.setOnTextSelectListener(new TextPopupWindow.OnTextSelectListener() {
            @Override
            public void onTextSelect(String text, int position) {
                etMagor.setText(text);
                Logger.d("专业是：" + text);
            }
        });
    }


}
=======
public class MainActivity
{

/**
显示方法
*/
  private void show{
                if (showAdress != null) {
                    if (!showAdress.isShowing()) {
                        showAdress.showAtLocation(getWindow().getDecorView(), Gravity.CENTER, 0, 0);
                    }
                }
  }


    /**
     * 初始化弹窗
     */
    private void initPopu(List<String> list) {
//        ArrayList<String> strings = new ArrayList<>();
//        for (int i = 0; i < list.size(); i++) {
//            strings.add(list.get(i).name);
//        }
        if (showAdress == null) {
            showAdress = new TextPopupWindow(this, (ArrayList<String>) list, list.size());
        }
        showAdress.setOnTextSelectListener(new TextPopupWindow.OnTextSelectListener() {
            @Override
            public void onTextSelect(String text, int position) {
                etMagor.setText(text);
                Logger.d("专业是：" + text);
            }
        });
    }


}
>>>>>>> 12b9a08f9380bce72b8c6e055d4084faa0570803
